import Mock from 'mockjs'

let Random = Mock.Random
Random.extend({
    fenlei1:function(data){
      let fenlei = ['减肥燃脂','家庭健身','瑜伽系列','女生塑形','男生塑形']
      return this.pick(fenlei)
    }
})

let video1 = Mock.mock({
    'data|15-20':[{
        'pid|+1':0,
        'name':'@name()',
        'img':'@image()',
        'fl':'@fenlei1()',
        'num':'@natural()'
    }]
})
Mock.mock('http://www.suxing.com/api',video1)


